package com.yex.entity.otc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * otc 法币列表
 * </p>
 *
 * @author Little Liu
 * @since 2018-05-03
 */
@TableName("otc_coin")
public class OtcCoin extends Model<OtcCoin> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 币种id
     */
    private Integer coinId;
    /**
     * 币种id
     */
    private String coinName;
    /**
     * 管理员id
     */
    private Integer adminId;
    /**
     * 管理员id
     */
    private Integer upAdminId;
    /**
     * 创建日期
     */
    private Date createDate;
    /**
     * 修改日期
     */
    private Date modifyDate;
    /**
     * 排序
     */
    private Integer soft;
    /**
     * 0失效 1正常
     */
    private Integer status;
    /**
     * 版本
     */
    @Version
    private Integer version;
    /**
     * 保证金
     */
    private BigDecimal ensureAmount;
    /**
     * 费率
     */
    private BigDecimal fees;
    /**
     * 费率
     */
    private BigDecimal okcoinPrize;
    /**
     * 费率
     */
    private BigDecimal binancePrize;
    /**
     * 费率
     */
    private BigDecimal huobiPrize;

    private BigDecimal coinmarketcapPrize;

    private BigDecimal bitfinexPrize;
    private BigDecimal rate;
    private BigDecimal floating;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCoinId() {
        return coinId;
    }

    public void setCoinId(Integer coinId) {
        this.coinId = coinId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Integer getSoft() {
        return soft;
    }

    public void setSoft(Integer soft) {
        this.soft = soft;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public BigDecimal getEnsureAmount() {
        return ensureAmount;
    }

    public void setEnsureAmount(BigDecimal ensureAmount) {
        this.ensureAmount = ensureAmount;
    }

    public BigDecimal getFees() {
        return fees;
    }

    public void setFees(BigDecimal fees) {
        this.fees = fees;
    }

    public String getCoinName() {
        return coinName;
    }

    public void setCoinName(String coinName) {
        this.coinName = coinName;
    }

    public BigDecimal getOkcoinPrize() {
        return okcoinPrize;
    }

    public void setOkcoinPrize(BigDecimal okcoinPrize) {
        this.okcoinPrize = okcoinPrize;
    }

    public BigDecimal getBinancePrize() {
        return binancePrize;
    }

    public void setBinancePrize(BigDecimal binancePrize) {
        this.binancePrize = binancePrize;
    }

    public BigDecimal getHuobiPrize() {
        return huobiPrize;
    }

    public void setHuobiPrize(BigDecimal huobiPrize) {
        this.huobiPrize = huobiPrize;
    }

    public Integer getUpAdminId() {
        return upAdminId;
    }

    public void setUpAdminId(Integer upAdminId) {
        this.upAdminId = upAdminId;
    }

    public BigDecimal getCoinmarketcapPrize() {
        return coinmarketcapPrize;
    }

    public void setCoinmarketcapPrize(BigDecimal coinmarketcapPrize) {
        this.coinmarketcapPrize = coinmarketcapPrize;
    }

    public BigDecimal getBitfinexPrize() {
        return bitfinexPrize;
    }

    public void setBitfinexPrize(BigDecimal bitfinexPrize) {
        this.bitfinexPrize = bitfinexPrize;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getFloating() {
        return floating;
    }

    public void setFloating(BigDecimal floating) {
        this.floating = floating;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OtcCoin{" +
                ", id=" + id +
                ", coinId=" + coinId +
                ", adminId=" + adminId +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                ", soft=" + soft +
                ", status=" + status +
                ", version=" + version +
                ", fees=" + fees +
                ", ensureAmount=" + ensureAmount +
                "}";
    }
}
